//
//  TitleLineCell.m
//  WE
//
//  Created by iMacOne on 15/12/4.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "TitleLineCell.h"
#import "Size.h"
#import "ToolUtil.h"
#import <Masonry.h>

@interface TitleLineCell()
@property (nonatomic, strong)UILabel * titleLbl;
@property (nonatomic, strong)UILabel * moneyLbl;


@end
@implementation TitleLineCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, [ToolUtil autoWidth:@"骨伤科" width:0 height:20 num:14], 20)];
        _titleLbl.font = FONT(14);
        _titleLbl.text = @"骨伤科";
        _titleLbl.textColor = [UIColor colorWithRed:0.2875 green:0.6804 blue:0.3164 alpha:1.0];
        [self.contentView addSubview:_titleLbl];
        [ToolUtil createLine:CGRectGetMaxY(_titleLbl.frame) superView:self lift:_titleLbl.frame.origin.x width:_titleLbl.frame.size.width hight:1 color:_titleLbl.textColor];
        [self.contentView addSubview:_titleLbl];
        
        self.moneyLbl = [UILabel new];
        _moneyLbl.font = FONT(12);
        _moneyLbl.text = @"张氏骨伤科";
        
        _moneyLbl.textColor = [UIColor grayColor];
        [self.contentView addSubview:_moneyLbl];
        [_moneyLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(_titleLbl.mas_right).offset(10);
            make.top.equalTo(_titleLbl.mas_top);
            make.height.offset(20);
        }];
        
        
    }
    return self;
}

@end
